import request from '@/utils/request'

// 
export const getMsgList = (params) => {
    return request({
        url: '/system/message/list',
        method: 'get',
        params
    })
}

// 标记已读
export const isRead = (ids) => {
    return request({
        url: '/system/message/' + ids,
        method: 'put'
    })
}
// 查看详情
export const getDetail = (id) => {
    return request({
        url: '/system/message/' + id,
        method: 'get'
    })
}
// /dev-api/system/message/poll
export const poll = () => {
    return request({
        url: '/system/message/poll',
        method: 'get'
    })
}
// 发送消息
export const demoMsg = (data) => {
    return request({
        url: '/system/message',
        method: 'post',
        data: data
    })
}
